/**
 * Author: ZhangYang
 * Version: 1.0
 */
package com.pccw.portlet.util.excel.exportutil;


public class TemplateExportRule {
	/**
	 * Constructor
	 */
	public TemplateExportRule(){
		
	}
	
	private boolean isMultiSheet = false; // 1.0
	private boolean hasHead = true;
	private boolean hasDetail = true;
	private String headBeanClass;
	private String detailLayoutType = "row";
	private int detailStartIndex = 0;
	private String detailBeanClass;
	
	public String getDetailBeanClass() {
		return detailBeanClass;
	}
	public void setDetailBeanClass(String detailBeanClass) {
		this.detailBeanClass = detailBeanClass;
	}

	public int getDetailStartIndex() {
		return detailStartIndex;
	}
	public void setDetailStartIndex(int detailStartIndex) {
		this.detailStartIndex = detailStartIndex;
	}
	public String getDetailLayoutType() {
		return detailLayoutType;
	}
	public void setDetailLayoutType(String detailLayoutType) {
		this.detailLayoutType = detailLayoutType;
	}
	public boolean hasDetail() {
		return hasDetail;
	}
	public void setHasDetail(boolean hasDetail) {
		this.hasDetail = hasDetail;
	}

	public boolean hasHead() {
		return hasHead;
	}
	public void setHasHead(boolean hasHead) {
		this.hasHead = hasHead;
	}

	public String getHeadBeanClass() {
		return headBeanClass;
	}
	public void setHeadBeanClass(String headBeanClass) {
		this.headBeanClass = headBeanClass;
	}

	public boolean isMultiSheet() {
		return isMultiSheet;
	}
	public void setMultiSheet(boolean isMultiSheet) {
		this.isMultiSheet = isMultiSheet;
	}
	
	public void print(){
		System.out.println("======== Template Validate Rule, begin: ========");
		System.out.println("isMultiSheet = " + this.isMultiSheet);
		System.out.println("======== Template Validate Rule, end. ========");
	}
}
